refactor in TDD