Tests: Fixed Postgres SQL