refact test cases