unit-tests for cptread