checking if terminal node probs sum up to 1