added deletion of test db at the top of a test function.

The test database is changed by other tests. By deleting it,
because it is recreated if it is used, the test case always gets
the same content of data base.