added test for problem 38