test pulsedb_memory cleanup