refactoring input for unit test