Fixed TestDateTimeUtil time comparison issues and static context issue.