Additional changes for testing persistence connections.

New set of tests that test redis client connected attribute.
Refactor lib/connection.js