Add documentation for writing tests.