testsuite: fix testing against file not in db

we may sometimes run a test against a file which is not in the db.
Allows the tools to be run when this is the case.