Test driver now flushes in non-tty mode as well