polish test cases.