fix getCategories + test