add test for empty hook. closes #15.