Fix utc time issue, and some tests