Added failing test for #22

Warning when iterating over non-initialized event array
Added initialization of event array in Basic provider

Fix #22