modified socktest