Test kvdb_flush()