Fixed #2071: Moving test_record.py from Pylearn2 to Theano.