added test for case 4