fix test to cope with new stderr/stdout difference and exit codes.
Gold file now has 1 trailing newline, like it should.