Fix test cases problem 4