Completed tests for task-factory