clean up testcase, remove unnecessary code