Improving documentation examples and ensuring that all are integration testing.

+review REVIEW-5202