use getOldid and getNewid methods in DifferenceEngineTest

- instead of direct variable access.

Change-Id: I019017ca1b4f3c2a511e703bc65b93a8ce47fae9
Merge "use getOldid and getNewid methods in DifferenceEngineTest"