add remove socket with test