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