Refactored tests to use recommended rspec syntax