fixed socket tests