delete_by_query: add tests for delete_all