fixes for rspec