Testing hooks