Bugfix about category deletion
Better testing about category deletion
stronger testing on categories