protect against exceptions in parser
Add test
add test
Test for compression
Rewrite tests using async
remove useless console.log