fixed random error with networks in unit tests

Change-Id: I8f6eb850d688b676389991d0400fddc6bef4e31b
Merge "fixed random error with networks in unit tests"