test pass fail hook