email and pid tests