Add YearTimeParser exception message test

Change-Id: I97eca76fc848cb272eb4868d6be2a03780caf67a
Merge "Add YearTimeParser exception message test"