Unit test for problem 7.