add test for active record using existing connection