refine test case