improve test cases.