update tests and update failure vs error emit