Services built with Node-RED should be tested like any other kind of software as well.
Based on my own experiences with Node-RED, I've published a test "pattern" and the underlying flows on GitHub.
Feel free to use it in whatever way you like. Any feedback is welcome.
With greetings from Germany,