fix rspec tests for #704