corrected tests for PostgresSQL