Remove duplicate helper functions in test
Fix formatting for tests
Render byte arrays in the CLI as a hex dump