Update test code
Update regex pattern
Convert number to hex string