tests: wait for migration completion before looking for STOP event