test_ccc: use a pipe to synchronize test