tests for problem 10