switch how test encodes Time instance