Bug 1043385 - change output so it conforms to structured logging

if (suite.parent && suite.parent.root)  is needed in onSuiteEnd because we catch onSuiteEnd for each subtest. We only want to log TEST-END when all subtests are complete, and that is only when the suite is the parent, ie when parent.root is true