* refactored test code.