correct tests to avoid deprecation warnings from Rspec 3.0