Refactored conn unit test into smaller tests