Revert "Revert "add test function for sms and e-mail but didnt work xwen2""

This reverts commit b501a2b60dec5e17400aeb6f9bdfdc408aa14673.