Refactoring and seed method with test data