Refactoring of test cases.