Adjusts unit tests for invalid months and years.