Small change in ResourceFactoryTest