tests on first half of task 3