Add category controller specs and fix bug in parent validator.