fix test by using 'signed char' instead of platform dependend 'char'