test: ensure closing database that is related with file