Add spec for state.registerListener()
Adds specs for event listening in state