Added docs for test-writing guidelines.

Updated version of PR #31 (reverted) to use the new query interface.  @jzoldak please review.