Testing merge networks function