tests: fix unportable "\?" and "\+" regex syntax