Added tests

* Added client and server tests (allow/deny not added yet)
* minor refactoring getting getMethodHandler into test scope