- fixed a couple of bugs, refactored the test (closeSession and closeSocket are still failing), message passing works