Fix bug in DateExtractorFromName, add unit tests.