refactoring to make use of rspec subject