CAL-861 unit test for task in rest-api