Problem: some tests didn't clean up properly

* Some tests did not properly destroy sockets - fixed
* Updated auto generated godoc.