correctly reset delay in test_io