fix clearing of test database