test: make a test path-independent #12945
Affected core subsystem(s)
This is the first step to fix the #12773.
I've decided to start from the most whimsical one (section 4 in the #12773):
The fixed test passes with all 4 paths variants (spaceless + spaceless, spacy + spaceless, spaceless + spacy, and spacy + spacy).
Please, test in more environments and propose better fixes if you have some)