implemented TextMessage sending logic with TEST mode by config