Include code examples for integration and functional tests in docs.

Fixes #1001