Write use-cases into doco to write tests (code was extracted from another library).