testcase updated to pass all tests