Writing tests for Task utils