Add test for cptr