Added spec for error messages