update tests
changing type from char to unsigned char, and adding an helper for the type