Include code examples for integration and functional tests in docs.

Fixes #1001
Shouldn't this be a crossref?