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

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>