Add test for ConnectionModel id assignment