updated tests to rspec 3.1 syntax