Add test for tasks.