Add test for tasks