tests: another fix for dname tests (clang analyzer)