added partial patch function and textnode patch test