mosquitto: use assert in test; style nits