Add demo and test for Simulator class.