Fixed several minor errors in regression testing and emailing.