modified socket emit test.