Updated connection test