Fix JMS Test; Add sent event when task completed or failed.