Add tests for wrap-with-loopback