Sample rewriting of connection test