Move ccl_pquery to ccl module (ccl.h). Add proper CCL test.