You could refactor `test_memory_limit_default` and `test_memory_limiti_with_overrides` into one test-generator.