improve hdist tests