fixes test that was not waiting enough.