ConnectionTest without thread.sleep