Add tests for problem 3