add support of event array. Test added