refine the test cases