Adding test around to_hex_string