tests: unit tests for marshalling CDBs for the commands we support

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Merge pull request #21 from sahlberg/cdb-unit-tests

tests: unit tests for marshalling CDBs for the commands we support