Fix errors in PostGreSQL testing.