tests for categories validations