Minor tweak on test to declare files in a more specific context. Fixes #9349