Test case for #304.
Merge pull request #656 from diversario/i304-timeout-error-event

Test case for #304.