fix rspec errors