Implemented test, fixed issues and added feature

I created the test to test connection-string and fixed the issues, and I
added the feature to the module and changed the module test according
the new feature that allows to provide an object with the connection
parameter rather than a connection string