[fix] Correctly specify the amount of bytes that need to be queued
[api] Added missing Parser#reset method
[test] Added more test