test script: close DB connection on error in setup
make tests work with postgis 1.5 (for Debian-based distributions only)
exclude *=yes tags that are used as secondary tags

fixes https://trac.openstreetmap.org/ticket/4946