Fixed tree test to detect failure case.

When you revert OnDemandList to before the fix for 817, the aspect of renderArray in scrollToEnd in the tree test does not work because in that situation, the grid is not actually scrolling so renderArray is never called.  I replaced the aspect with a timer.  I also refactored the test to hopefully make it more readable.