added tests for resource manager
Merge pull request #145 from lordgeorg/resource-manager-tests

ResourceManager tests