Handle spurious test run listener callbacks.

Fixes #162