Test + fix for casing issue specific to Postgres with unquoted identifiers