added socket tests