Add definitions for getting the length of packed cert objects
[WIP] Test program