Refine test cases.