test character and gb distance