Fixed test to work on Windows
Fixed test to work on Windows

Close the database before removing it, the removal mechanism is more
Pythonesque, and renamed "file" to "fname" to avoid overwriting Python
reserved words.

funginstitute/patentprocessor,nikken1/patentprocessor,yngcan/patentprocessor,nikken1/patentprocessor,yngcan/patentprocessor,funginstitute/patentprocessor,yngcan/patentprocessor,funginstitute/patentprocessor,nikken1/patentprocessor