Tweaked domdiff.test.js to use mock env with reqd. functionality

Change-Id: I6531236370216c9290b8dc31645fae77450b91f2