full unit test for ResourceManager class