Added test framework.

Is there an advantage for converting each chunk, instead of using an array and converting it to string on `end`?