Modified the assertion method in DefaultDateFactoryTest#testNewDateTime #165

Backport to 1.0.x from #166.
Please review #165.