test cleanup and Simulator.RaggedArray