unit test for event management command