test success and failure codes for both cucumber and rspec.