test_substituition: Fix failed test reporting to actually report failure.

You cannot put the "Testing <blah> pass/fail" on a single line before
actually performing the test.  Now any additional failure information is
logged before the test pass/fail announcement.

* Added an additional CDR(answer,u) test.


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/1.8@398018 f38db490-d61c-443f-a65b-d21fe96a405b
Fix memory leak

Fixed a features.c test that leaked a reference to a parked call.  This caused
chancount to never reach 0, so graceful shutdown stops.  Also added an
unregister test.

(closes issue ASTERISK-22413)
Reported by: Corey Farrell
Patches:
     features-TEST_FRAMEWORK.patch uploaded by coreyfarrell (license 5909)


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/1.8@398021 f38db490-d61c-443f-a65b-d21fe96a405b