Beefed up testOutput.py and made it clearer