unit test for createNewCategory scipt