LP#1505286: add pgTAP tests