Fix the :uniqueness validation and test with specs. [#80441132]