Shan Masood named captain of Test team after Babar’s resignation