Refactoring: Avoid to load posix.cfg multiple times while testing (testother.cpp) (#6336)