Refine test case