Back to 1350 BC, we find the earliest ancient records showing evidence for the urine-based method of testing for pregnancy. The old Egyptian papyrus document shows that women would urinate on wheat and barley seeds and that if there is growth, then the woman was pregnant, but if the seeds did not grow, then she was not considered pregnant.
Then in the 1950s and 1960s, a "hemagglutination inhibition test" was determined by L. Wide and C. A. Gemzell. These were the years that the urine test was solidified. The test put to use purified hCG. When the pregnancy test is positive, the red cells clumped in a specific pattern.