rest test for add category