ported tests to mocha
added `normalizeWhitespace`, dropped `ignoreWhitespace` option

`ignoreWhitespace` resulted in inconsistent behavior when using streams

there was no nice way for fixing it, so I dropped it in favor of a
`normalizeWhitespace` option
fixed whitespace normalization when written in multiple chunks
added testcase for whitespace normalization