Reworked file path usage in tests to pick up the resource dynamically from the output/run directory.