UniswapV4 hooks encode hook permissions as part of the deployment address. This means that the addresses for hook contracts must be mined. The mining process is computationally too expensive to run as part of a test setup. We've figured out a workaround using vm.etch - but this should be documented.