Write test to expose that email duplicate detection is broken and fix it.