Added tests

Addresses #30
Well, it should be _dynamic_, rather than just configurable. Like how you would `.listen(0)` and it automatically picks a free port for you and then you get that information, etc.