Text this: Reducing redundancy of test cases generation using code smell detection and refactoring