Added a note about mocking in tests.
Fixed up function markdown.