escape single quote when making JSON for trees; update tree test file to have all examples from Guidelines