added tests for resources