Adjust getWidth to report characters correctly

If the width is 1 character, getWidth now reports 1 character, not 0.
Also change to all the tests that use getWidth.