Bug fix: expected and actual output stripped leading spaces (e.g. " a" became "a")
Bug fix: if expected_stdout ended in a newline, the tests would fail.