Added a wait in the test, this *sometimes* fails