Writing test for rspec