hook file test