refactored tests to use object creation helper methods