connection test now receives the number of threads and iterations as arguments