Add tests for problem 2