Add the supervisor_cpg behaviour with basic tests.