tests for TaskResult