Added tests for Connection.