add regression testing.  Currently runs until stack overflow with test2