I accidentally committed the wrong version of this patch which didn't actually enable the hooks for FreeBSD. Fixing the typo allows the tests to actually pass.