registry managed authorities overlap testing code