Fix character positions in unit tests.