close redis socket, fix path, fix tests