refactoring test object