`setTimeout` is bad and should be avoided in tests.
Do this instead:

1. use QoS 1
2. count the numer of `"publish"` events.
3. call `disconnect()` on `"puback"`, after verifying the number of events.