AME-6808 CR-7230 integrate unit-test framework, version 2
AME-6808 CR-7174: Introduce cmocka test framework and several test cases, together with changes to the logging for unit test mode.