Fix tests so they don't call `done` multiple times
If no result, return `null` instead of `undefined`.
Add `exactyear` flag for getEntry. If truthy, only accepts that year.

Only used for tests.
Add a test confirming that if two entries are added, the one for the later year is chosen.