Fixed #20048 -- Fixed flatpages tests for custom User model.

Skipped flatpages tests depending on default User model.
Also fixed flatpage test failing depending on the project locale.