Giza didn't happen first ~ it happened "later" after a period of development. And yes, there is a "test pyramid" ~ check out "The Step Pyramid of Saqqara built for King Zoser". I believe a later, larger pyramid, was initially built at too steep an angle and started to collapse. They changed the angle on the upper portion.