Add unit test for date helper functions.