fixed addconnection tests