Minor changes to test functions.
Updates to L2 penalty ... checking in Using info from: [http://www.cs.toronto.edu/~hinton/code/rbm.m]