added test for creating a connection to a newly created entity with a specified id