add test for delete-by-query hook