add tests for invalid connection config