updated tests for Rspec version 3.0.3