Add test of Connection model