THGEM-based detectors for sampling elements in DHCAL: laboratory and beam evaluation