Fix ignored assertion

`stateEquals` requires two parameters.