Added the first test suite and improved messages

Nanomsg seems buggy when we send message too fast, perhaps Ill end up implementing its pub/sub mechanism. Most of the test fails but they fail if we add an sleep in the middle