Added docs for test-writing guidelines.

First pass at documenting how to write robust tests.