Add unit tests for "jslint.report"

- Also make error behaviour consistent between
  "emitError" and "emitErrorAtEnd" flags; in
  both cases report stream now emits "error"
  event followed by "finish" event.