Modifying socket test