Fixed testDeleteDatabase testcase

Fixed testDeleteDatabase testcase. We cannot assume that the -journal file which is a rollback journal file will always exist before deleting the database.