Testing hooks.