Add spec to catch error