Remove a debug println
Add a test for the state-run listener function