test: fix: make test more reliable, not depending on result order