Added a wait-for to prevent race condition in acceptance test.