Fixed #18176 -- Added test for year lookups with year < 1000

Thanks Tomas Ehrlich for the initial test
Merge pull request #847 from fhahn/ticket_18176

Fixed #18176 -- Added test for year lookups with year < 1000