Added Connection type.
Added unit test for connections.