testcases now pass