Junit tests for date formatiing.