socket tests