Add UDP forwarding on the loopback interface and update unit tests