[new] Test for events setter
[fix] Bad order for condition