Change state changes into an event
Write test cases