Fixes tests that are affected by <https://github.com/NixOS/nixpkgs/pull/333744>.
Co-authored-by: Janik H <janik@aq0.de>