Added test for postgresql

* Minor fix for postgresql test