fixing rspec issues