More to_hex tests