failing the task when tests fail