Added test around diagnostics emitter.