BS-2735 : Subtask is not aborted when parent task is skipped

- Fix test after refactor to use enum for the state of a task or a process