Так исправил, это правильно?
var test = 0;
[].forEach.call(trCheck, function(item) {
checkBox = item.childNodes[0].childNodes[0];
checkBox.addEventListener('click', function() {
if(this.checked){
test += 1;
console.log(this.checked);
console.log(test);
}else{
test += -1;
console.log(test);
}
});
});