Improve response parse stream and tests