Add Doc and modif tests

After those change, I think the PR to Theano is good to merge.