Mqtt tests reviewed

Auto formatting to avoid exceeding 120 characters in a line. Will manually format.