Added a test for Event.defer()