corrected some testcases