custom socket testing