Fix email tests