fix strange setup error introduced in hook testing