Hi!
Unique constraint error is related to this function: Faker.Lorem.word()
Faker just generates random words, but in the test run, this name could be easily repeated because Faker does not guarantee uniquenes. You should refer to this Faker doc:
Regarding the uniqueness error, you should add the following to your changeset:
https://hexdocs.pm/ecto/Ecto.Changeset.html#unique_constraint/3