tweaked MNIST DBN unit test to account for regularization, sparsity, and momentum