Added test case for problem 8.