diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
new file mode 100644
index 00000000..dfc25408
--- /dev/null
+++ b/tests/parser/parserTests.txt
@@ -0,0 +1,137 @@
+!! options
+version=2
+parsoid-compatible=wt2html
+!! end
+
+!! test
+Self-closing tag:
+!! wikitext
+
+!! html/php
+!! html/parsoid
+
+!! end
+
+!! test
+Empty tag:
+!! wikitext
+
+!! html/php
+!! html/parsoid
+
+!! end
+
+!! test
+Empty function: {{#categorytree:}}
+!! wikitext
+{{#categorytree:}}
+!! html/php
+!! html/parsoid
+
+!! end
+
+!! test
+Tag with Unknown category: Unknown category
+!! wikitext
+Unknown category
+!! html/php
+
Category Unknown category not found
+!! html/parsoid
+
Category Unknown category not found
+!! end
+
+!! test
+Function with Unknown category: {{#categorytree:Unknown category}}
+!! wikitext
+{{#categorytree:Unknown category}}
+!! html/php
+
Category Unknown category not found
+!! html/parsoid
+
Category Unknown category not found
+!! end
+
+!! test
+Tag with Unknown category and parameters: Unknown category
+!! wikitext
+Unknown category
+!! html/php
+
Category Unknown category not found
+!! html/parsoid
+
Category Unknown category not found
+!! end
+
+!! article
+Category:CategoryTree test category
+!! text
+!! endarticle
+
+!! test
+Tag with Category:CategoryTree test category
+!! wikitext
+CategoryTree test category
+!! html/php
+