New integration tests for postgresql