Connect endpoint

this test is a copy paste from your code, and therefore does not test anything :\