Convert tree tests to AMD, and change to use  boilerplate.js instead of _testCommon.js,  refs #17022.  tree/robot test files not converted to AMD though.