Add tests for TaskPlugin.
Add get_task_by_id api to TaskPlugin.