Add cdb tests for encode/decode composite/non-composite types
developed while debugging bug 2886
Merge pull request #668 from Juniper/meghb_gendb_test

Add cdb tests for encode/decode composite/non-composite types