test: add Diff function.

forgot to commit earlier.

Change-Id: I9986b6bd2266d455837bc20e47b43e4c971654d7