add getErrors() + getWarnings() to Resource and tests