Lowered TESTNUM from 1250000 to 1000000 to avoid stack overflows.