Fix id comparison for email test