Refactoring the rspec tests to follow BDD best practice