Add test for endpoint leak.