ConnectionController test coverage and fixes.