diff --git a/tests/ServerTest.php b/tests/ServerTest.php
index <HASH>..<HASH> 100644
--- a/tests/ServerTest.php
+++ b/tests/ServerTest.php
@@ -95,4 +95,10 @@ class ServerTest extends \PHPUnit_Framework_TestCase {
         $this->setExpectedException('\InvalidArgumentException');
         $this->server->subscribeEvent('unknownEvent');
     }
+
+    public function testSubscribingEventWithoutSettingEventsHandlerThrowsServerException()
+    {
+        $this->setExpectedException('\noFlash\CherryHttp\ServerException');
+        $this->server->subscribeEvent('httpException');
+    }
 }
Added test for subscribing event before setting events handler in Server.