Document parser, add test cases for the external entry points to it.