add test case for parserFactory