Added flags with tests for recognizing if category is primary