Add tests.
Listen to 'finish' event to call 'done'.