LOADUI-41 Wrote an automated test for Test Connection button within SettingsDialog as well as some refactoring