Refactoring in TestCases