tests: fw_cfg: add a function to get the fw_cfg file