added function whatResources with tests