Update task state validation in behaviors

*Added create_task_with_transitions method
*Added get_task_status method
*Updated method placement
*Removed newer changes from wait_for_task_status method

Change-Id: Ib31c89591ec1df2e0d0a97046b30ae3a8e1e31f3