refactoring a test.