quick and ugly fix to onended event

Well, this is a small fix. Don't know if it fits your needs.
* I had to schedule the ```onended``` event, so, I had to schedule a ```kill``` event too.
* I had to add also a ```target``` to the event object.
* Finally, the tests didn't pass, because of the extra buffer (I suppose), so I ran one more tick, and they pass.

If you have any comments on that, feel free of course.