Working of Rspec tests