finish test cases