Fixing undef/0 test issue with Pg.