[ticket/303] Fix character_limit() tests

Fixes #303