add test code for byte to char