Add test for year validation.