Theano based comparison test