[#6388] fix location lookup of tests that explicitly use test.ini