Fix failing socket file tests