Fix the world regenerate event subscription.

The "regenerate" event may be triggered by subsequent tests.  This will
result in done being called multiple times, and a failed test.  This fix
detaches the event listener.