tests/unix_sockets: Add error checking to the generic request path