use index refresh rather than sleeps in tests