unique testing and serialization support for datetimes