Preparing for adding unit-tests

Will use cmocka as unit-testing framework