Added test for Ems_Date_Period
Rewrite compare function, rewrite get_events function (supports now won sort callback, limit is working now and start / end period is added as param