implemented functionality to do a test send of a template