Error with badarg instead of returning
Add binary roundtrip tests to regs