additional tests and made the nesting depth infinite or as much as memory will hold