Added unix socket support

Drying up the tests was necessary, too.