Change from "should" to "expect"
Refactor "capture_stderr" and "capture_stdout"
Use match_array instead of sort and eq