test implementation for connection