AnimationNode.replace() tests and bugfixing