add docs for writing tests