Added in unit test for basic date creation functionality. More to come.

Also added in code to check/create indices for the calendars.