Test TimeRange conversion.