add test.js for sample to send mail using report