Remove obsolete patch and add test to files in psycopg2