added test for connecting an entity by specifying an id