Fix tests on nix