Completed and reworked tests after testing mosquitto 1.3