Adding unit tests to make sure when a session terminates it dispatches a logged out event.