added test for problem 47