handle the cases other than last testCase