added SetChar method and test for it