Check that binary representation and hexadecimal represenation are equivalent