fixing error that caused done to be called with an error when state is not finished
fixing error that caused done to be called with an error when state is not finished

GerHobbelt/mocha,GerHobbelt/mocha,GerHobbelt/mocha