refactoring of test cases