Refactor test, fix test when cost is not implemented
Refactor test, fix test when cost is not implemented

nouiz/pylearn2,ddboline/pylearn2,nouiz/pylearn2,lisa-lab/pylearn2,lisa-lab/pylearn2,pombredanne/pylearn2,alexjc/pylearn2,pombredanne/pylearn2,ddboline/pylearn2,ddboline/pylearn2,nouiz/pylearn2,alexjc/pylearn2,alexjc/pylearn2,nouiz/pylearn2,alexjc/pylearn2,lisa-lab/pylearn2,pombredanne/pylearn2,lisa-lab/pylearn2,pombredanne/pylearn2,ddboline/pylearn2