Compression and error events fixed
Tests for events order