Testing Http In node with node-red-test-helper

Hi. Do you have any advice or reference code on testing http in with the node-test-helper? I was trying something like this …

const flow = [
            {
                id: "n1",
                type: "http in",
                name: "http in",
                wires:[["n2"]],
                url: 'some/endpoint',
                method: 'post'
            },
            { id: "n2", type: "helper" }
        ];

        it('sanity check', (done) => {

            helper.load(httpin, flow, async () => {
                const n1 = helper.getNode("n1");
                const n2 = helper.getNode("n2");
                n2.on("input", (msg) => {
                    try {
                        console.log(msg);
                        done();
                    } catch (e) {
                        done(e);
                    }
                });
                setTimeout( () => {
                    helper.request().post('some/endpoint').expect(200).end(done);
                }, 500 );
            });

        });