Only test theano code if TEST_THEANO is true.