add unit tests for date helper functions