Fix test
Fix parser with empty docs or binary docs