Blood in urine

What can cause blood in urine? What test can doctor do to test kidneys