add category function and category test