Fix done() bug in 'emits logged event... ' test