Tweak test, as the output no longer ends where it used to
Allow optional space before 'QUERY PLAN'