By the way, while working on it, I have noticed that the file privacy/tests/sitepolicy_test.php has a class "handler" still defined at the bottom, which I believe is a relic of some previous unit test version / variant
Discovered while testing
MDL-61672Abstract static methods used in core_privacy\local\sitepolicy\handler
Closed
is a regression caused by
MDL-61477Allow plugins to overwrite $CFG->sitepolicy and $CFG->sitepolicyguest