test: fix wrong wait event...

We should wait until backend receives an emitted message.