some tests with psycopg2