Fix test compiler warning by using unsigned int