test send mail completed and recheck all function, write test spec