nix: fix travis-ci, fix tests