Close GH-10: expose functions and add tests.