[#1139] Add support for Postgres TABLE types - Added test function