fixing rspec errors