Vtree bug

Added a test for broken replace functionality