patched unit test not to rely on fragile text comparicon of datetime
value