added read/validation methods and tests for TPair<string, string>