Assert on emitted events in tests and removed state in Order only used in test.