added tests for the new json parsing functionality

this also adds a PgsqlPDOTest class with a feature to selectively skip
tests based on some conditions.

At the moment, all it supports is enforcing a minimum server version
which we need to do here in order to skip the test when the server is
too old to know about JSON