fixes #614 Bring back closeAllDatabases
fixes #590 close database before running the tests