Include code examples for integration and functional tests in docs.

Fixes #1001
@mgrbyte insert "of " before "the code under test"