add code to check error handling from enum task
add assert with handler add task assert with error catcher