Fixed issue #416

The commits are pretty self-explaining. I fixed the documentation testing.
The next step is to fix issue #414 to make Travis CI fail if docs have warnings.