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
Merge pull request #6509 from Srokap/ticket_6507

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