Minor refactoring. Add spec for presence of #errors.