Fixed test_tasks unit test