Add tests for cli

- Move postgresql_fixture and db_connect to cnxupgrade/tests/__init__.py
- Move collection migration test case to its own file
- Add tests for cnx-upgrade to_html and cli.py

Effort points: 2