refactoring required text tests