test resource errors