io_test checks if we are waiting for input while giving it (and that we're not after all IO is done)