tests: Remove dependency on files for a few tests