Fix global variable leaks in parserTests.js.

Change-Id: Ida20edeb8b6cfad31e0c103984157fa78210ceae