changed Client to Resource
changed method names in ResourceFactoryTest