reverse-method no longer mutates given node and therefore can pass the unit test