It's impossible to write tests today that assert the query plan for a given cypher query. Look into exporting it using a structured format that can be verified.