test first
[FIX] delete category also deletes duplicates