Correct assertion.
Add integration spec for empty dates. Fix implementation.