rewrite: tests: move psycopg2.connect into setUp() in an attempt to get the tests working correctly on travis