Adds tests for textreporter & fixes a bug with exception reporting