Unittests for sendmessagetask