Add some acceptance tests of profiling OPTIONAL MATCH, MERGE and UNION queries

I thought there was a bug hiding somewhere, and that the query with the WITH clause would fail, but apparently it all works just as it should.

Oh well, now the feature also has high-level tests.