Refactored connection tests
Refactored driver, so local address is now optional