add the parameter "fast_compile". This should not need to change the mode in the tests and it should pass with the theano flag mode=FAST_COMPILE.