fixing failures for Hook integration test