testing a hook