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

Close the database before removing it, remove it using a more
Pythonesque mechanism, and renamed the variables to be more clear about
their function

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