added connection test in the options