test variant of backpropagation