fix ReferenceValidator
fix test