fix Theano test.
Merge pull request #1155 from nouiz/fix_tests

fix Theano test.