Added ResourceManager tests, fixed selected DI key in tests