Added variables for clarity, removed 'double errors': for example in the 'invalid header' test, there was also an 'invalid size' error. Although this didn't cause any problems, it could possibly obfuscate the meaning of the test.
Corrected unit test: 'event should raise' => 'event should raise within one second'. To prevent waiting until eternity :-)