refactored some more code within the accessors spec