refactored unit test.