Bugfix: Connect now correctly handles login/password as part of url.
Improved rest unit tests.