small refactorings to test_realizations_per_task