Fix some minor bugs and get some tests using dynamic ports
Merge pull request #47 from yaronyg/master

Fix some minor bugs and get some tests using dynamic ports