field encapsulation and correct GetEpoch to expect error