fix rspec issues