added test for problem 24