Added UTs for TaskUtils.
Added singnalling methods for using state machine context only.