I have quite some troubles connecting to the MQTT Server from Zigbee2MQTT. I tried different methods but pretty much always get a "Connection refused" or MQTT offline.
I suggest not using that node. Just use the standard MQTT nodes configured with the appropriate topics. Also I suggest installing MQTTExplorer which is a great tool for checking what the topics should be.
Thanks @Colin for your advice. I tried the standard MQTT nodes before which were formerly connected to the Test node and they couldn't connect either. Here is the former setup:
I tried different nodes if there was an issue with one Node Red extension. However, what you mentioned about mosquitto opened my eyes. I was so mislead with the MQTT Server option in Z2M that I totally forgot abotu mosquitto.