trac: Add test hook.