[Misc] Added some new TestUtil APIs for simpler test writing + fixed execution speed of AllDocsTest#treeViewTab which was taking 45 seconds!!! (now takes around 2 seconds)