establish_connection tests