Improve tests rspec syntax