fixed PG::UniqueViolation: ERROR when running tests
added comments