Fix ignored assertion

`stateEquals` requires two parameters.
Merge pull request #1074 from tricknotes/fix-assertion

Fix ignored assertion