Added tests for tasks