Test integration on unique constraint