fix(tests): Corrected the way the commit message tests are run.

Made more informative errors on phpunit failures. Corrected the way environment variables are passed to subprocess while testng. Allowed more merge commit label formats.

Fixes #6507