refactoring test.