Corrected tests to account for Python 3.4 modifications.
Corrected minor bug in connection.