updated tests for rspec 3