Mqtt tests reviewed

Fixed with a422767688a3d77ed168b7e55a436763e69ed608.