Fixed testcase bug