Fixed failing test.

Any server that processes the request in a different thread, should flush explicitly.