hexToBytes
hexToString
* better error handling * fix browser tests * add shared variable * re-add test case