[UnitTest] Updated the ResourceManager test.