test node equals function. refactor master's groom management.