Make it better testable
Unittest for the DateTypeAdapter