Convert specs to rspec 3
Fix failure detection in specs