Added tests for subscribe and unsubscribe events.