cast constants to uint32/64 for remote testing
improved tests show getLeafCount() errors