tests: modify hook-list-test to use 'check' framework