hook testing