Added failonerror for ktest task.