test cases refined