Added some real tests to connection