Rewriting the rspec tests with more concise syntax