update test code to output signed intger to hexadecimal and binary