test(HAL): CategoryRepresentation unit test