Document and test