add pg test for test