added test for case 2