Add tests for TextParser