Fix for pushing results for main test

If test has multiple children, send Done as result for the main test,
and the Result if it has no child tests