document and add tests for PartialHelper