tests for task 1 and task 2