tests: fix postgis/pgraster tests if lack of connection