Fixed failing test and added threadpool to check proxy connectivity to prevent connection checks from blocking callers. Also speeds up the test considerably.