Fixed: OutputTest reversed expectation and test value in error messages.

The message would read "expected x but was y", where y would actually be the correct expected value and x the wrong one.
Test: verify compiler output for return statement without space.

Refs #1830.