Add more testing to ParserFactorySpec