Fix tests with networks

Change-Id: I5a2ad73c75656ec5278c14888b6cbcd27617d1b6