added dispatch(done) method.
fixed self=this to => for syntactic cleanness
test fixed to use dispatch() instead of dispatchNext()