The first known laboratory test originated by simply studying human urine around 6,000 years ago. It was known as uroscopy, a primary diagnostic tool by ancient physicians. Today, it is known as urinalysis, used to diagnose selective medical conditions and identify the use of certain illegal drugs and prescription medications. but why do you really need to pee in a cup?