Fixes rspec tests