Add test for date helper.