Testing libpq under a Foundation application