Convert existing tests to rspec
Bugfix for yielding command output