fixed errors in testcases