expect error to happen