Unit tests for the date routines.