refine test cases