socket testing