Added some unit tests for date helper and improved coverage in event tests