tests: Replace Q_FOREACH usage with for ranged loop
tests: Replace Q_FOREACH usage with for ranged loop

simonaw/cutelyst,simonaw/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst