Add calling onBeforeDateChange & onAfterDateChange event handlers + tests