fix framework failure in regression test

good question. Test is not working yet, I am just put it up in case Hongchao want to take a look.
I did not done much, but I did fix the param/gradient initialization. Now the system hangs.