Fix broken test from commit 2a4eb7c.
Fix broken hook from commit a4d473c.