adding unit test for get tasks