updating tests to use map.onIdle