Fix for date kind test

Hi,
This test first creates an object having a date attribute with the specified format, then constructs a `\DateTime` by assuming that the generated attribute is in the correct format. If this assumption is correct, then `$dateTime->format($format)` will be the same as the generated attribute.