unit test uses same function as in doc
Merge branch 'master' of github.com:nicholas-leonard/torch7