Added test for existence of only one correct hashid
Added check for equivalence hashid and re-encode