Add test for pg.types interface