added test for event handlers of login / logout