misc/test-hooks: simplify test