Fixed multiple testcase bug