[SATYR PATCHv3 4/6] tests: refactor input file loading into common function