Fixed getRequiredResources w/ test