Added Tests For Recursive processScope Function