testing reconstruction error theano function