Add debug info in test_socket_error.lua