Output.flush() was neccessary afterall. Fixes test failure.