Refactored object controller spec