Segmented object to a type and validator and correct the teste