refactored connection, improve specs
Revert "refactored connection, improve specs"

This reverts commit 13bd941d23500682a8a6c615bb2c4f0d776d347c.
more test coverage
Merge pull request #7 from marshallshen/master

More test coverage