Reduce duplication in Test class by extracting parse_time method