Connection unit tests