Upgraded dependency to rspec 3

Upgraded testing code accordingly