webrtcendpoint: add loopback test

Change-Id: I518827e60f99639e117d2b8a51bf86c5df0adf21