Add spec example for error