Add more tests for postgresql