Fix test length

Fixed your test also that was failing.

You were comparing the value instead of the length with toInt().