Fix tests for CensorHook