Test backprop for RBM layer.