test_docs porting to new codebase.
Merge pull request #861 from mfalesni/test_docs

Rewrite docs tests into new code