Add tests to verify the format trimming and padding work as expected
Only trim years, as trimming others would cause loss of meaning