fix datetime unittesting