Upper right abdomen pain radiating to back is characteristic for gallbladder stones, gallbladder inflammation
and pancreas diseases. It likes to come and go. It appears mostly right after a meal.
Pain in ribs area can be also caused by neuralgia
of ribs nerves. Both, gallbladder diseases
and neuralgia aches more when breathing.
Pain in testicles area and back pain on the same side are mostly caused by urinary tract infection
or kidney stones especially when associated with burning when urinating. Pain in testicle/groin area can be caused by testicles and epidydimis infections, testicles tumors, inguinal hernia and prostate gland infection.
It is possible that pain in your chest and testicles pain has nothing in common as diseases can be concomitant.
You should have abdomen ultrasound
, groins ultrasound and testicles ultrasound. Blood tests for infection markers, hepatic tests, pancreatic tests and urine tests.
Hope this will help