Where the trial court, on habeas corpus, finds the alien has not been accorded a fair hearing, it is its duty to determine the right of the alien to enter the United States, and this duty exists not only where the right of entry is based upon claimed citizenship but equally where the right of entry is based upon the claim, as here, that the alien is able to meet the literacy or other requirements