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

Thanks Tomas Ehrlich for the initial test