Refactored Tests and properly fixed the recursion rootObject