Add unit tests for year grouping formatting
The year grouping use-case was added in 0a8e7fb,
but only with partial unit test coverage: none
were covering the formatting.
Before restructuring further, let's add some.
This is not adding a test for higher-grouping,
because it (at least for now) does not make sense.