Extracting Ns._get_resource_allocation_params() and creating unit test