initial unit-tests for cpt.c