Added the test for the database deletion. However, there are some warnings.