Refactored test to use rspec 2 syntax