Updated tests to use DateTimeOffset