Test forwardChar and backwardChar