Testing

Test mode, TestResult, and MockResource for unit testing tasks.