Adding wait in order to try to fix flakiness