test harness for parser