Add errors tests