In here the function command-result= will only check for additional events if the user expects them.
Maybe this is completely intentional, because you want these "triggered" events to be quite independent, but this has the potential of making a test pass when the user does not expect any triggered events but there are. So it's not really the full result of the command anymore, at that point.