fix rspec after changed error handling