WIP commit on DBN MNIST tests