[tests] Fix TestFile after recent updates
Thanks @notspiff