I had intermittent test failures due to timing issues. This patch seems to have fixed them.
- use "with subtest" everywhere - do more in nix and less in python - use makeTest directly to define multiple tests instead of one with multiple nodes -> this enables them to run in parallel