Test and fix for add category