fix tests that error/fail on nix/hydra, refactor unicode a bit