Mqtt tests reviewed

Done with commit a422767688a3d77ed168b7e55a436763e69ed608.