Updated and refined tests for mosquitto 1.3.1