modified sub test case