calling init parser once
Fixing test case segfault from calling CleanupParser too many times.
Fixing segfault that could happend during test execution.