test for resource error