Adjusted unit tests for checking if traverseObject is undefined. Also removed unnecessary ROOT_ID variable.