Australia to rest Pat Cummins ahead of Pakistan Tests