Fix unit tests to work with random PYTHONHASHSEED

Fixed the unit tests that were failing with the random
python hash seed value.

Change-Id: I52afa7446cb2714fbab624d1515bcc6e9d6b98d8
Closes-bug: 1348818
Merge "Fix unit tests to work with random PYTHONHASHSEED"