refine TestSocks