connection unit tests