added tests for resource manager