       expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Info + "\", \"title\": \"testloginfo\"}"
       assert.deepEqual JSON.parse(sample), JSON.parse(expected)
   describe '.debug', ->
-  	it 'debug', ->
+  	it 'test debug function', ->
   	  logObj.debug "testlogdebug"
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Debug + "\", \"title\": \"testlogdebug\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
-  	it 'debugD', ->
+  	it 'test debugD function', ->
   	  logObj.debugD "testlogdebug", {"key1":"val1","key2":"val2"}
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Debug + "\", \"title\": \"testlogdebug\",\"key1\": \"val1\", \"key2\": \"val2\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
 
   describe '.info', ->
-  	it 'info', ->
+  	it 'test info function', ->
   	  logObj.info "testloginfo"
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Info + "\", \"title\": \"testloginfo\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
-  	it 'infoD', ->
+  	it 'test infoD function', ->
   	  logObj.infoD "testloginfo", {"key1":"val1","key2":"val2"}
 
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Info + "\", \"title\": \"testloginfo\",\"key1\": \"val1\", \"key2\": \"val2\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
 
   describe '.warning', ->
-  	it 'warn', ->
+  	it 'test warn function', ->
   	  logObj.warn "testlogwarning"
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Warning + "\", \"title\": \"testlogwarning\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
-  	it 'warnD', ->
+  	it 'test warnD function', ->
   	  logObj.warnD "testlogwarning", {"key1":"val1","key2":"val2"}
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Warning + "\", \"title\": \"testlogwarning\",\"key1\": \"val1\", \"key2\": \"val2\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
 
   describe '.error', ->
-  	it 'error', ->
+  	it 'test error function', ->
   	  logObj.error "testlogerror"
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Error + "\", \"title\": \"testlogerror\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
-  	it 'errorD', ->
+  	it 'test errorD function', ->
   	  logObj.errorD "testlogerror", {"key1":"val1","key2":"val2"}
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Error + "\", \"title\": \"testlogerror\",\"key1\": \"val1\", \"key2\": \"val2\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
 
   describe '.critical', ->
-  	it 'critical', ->
+  	it 'test critical function', ->
   	  logObj.critical "testlogcritical"
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Critical + "\", \"title\": \"testlogcritical\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
-  	it 'criticalD', ->
+  	it 'test criticalD function', ->
   	  logObj.criticalD "testlogcritical", {"key1":"val1","key2":"val2"}
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Critical + "\", \"title\": \"testlogcritical\",\"key1\": \"val1\", \"key2\": \"val2\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
 
   describe '.counter', ->
-  	it 'counter', ->
+  	it 'test counter function', ->
   	  logObj.counter "testlogcounter"
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Info + "\", \"title\": \"testlogcounter\", \"type\": \"counter\", \"value\": 1}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
-  	it 'counterD', ->
+  	it 'test counterD function', ->
   	  logObj.counterD "testlogcounter", 2, {"key1":"val1","key2":"val2"}
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Info + "\", \"title\": \"testlogcounter\",\"type\": \"counter\", \"value\": 2,\"key1\": \"val1\", \"key2\": \"val2\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
 
   describe '.gauge', ->
-  	it 'gauge', ->
+  	it 'test gauge function', ->
   	  logObj.gauge "testloggauge", 0
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Info + "\", \"title\": \"testloggauge\", \"type\": \"gauge\", \"value\": 0}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
-  	it 'gaugeD', ->
+  	it 'test gaugeD function', ->
   	  logObj.gaugeD "testloggauge", 4, {"key1":"val1","key2":"val2"}
   	  expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Info + "\", \"title\": \"testloggauge\", \"type\": \"gauge\", \"value\": 4, \"key1\": \"val1\", \"key2\": \"val2\"}"
   	  assert.deepEqual JSON.parse(sample), JSON.parse(expected)
 
   describe '.diffoutput', ->
-    it 'diffoutput', ->
+    it 'output to different output functions using same logger', ->
       logObj.info "testloginfo"
       infoLog = sample
       output2 = ""


        logObj.error "testlogerror"
        assert.equal sample, ""
      it 'notempty', ->
        logObj.critical "testlogcritical"
        assert.notDeepEqual JSON.parse(sample), ""

  describe '.diffformat', ->
    it 'diffformat', ->
      testFormatter = (data) -> "\"This is a test\""
      logObj.setFormatter testFormatter
      logObj.warn "testlogwarning"

      logObj.info "testloginfo"
      expected = logger.Info + ".logger-test.testloginfo"
      assert.equal sample, expected
  describe '.validateloglvl', ->
    # Explicit validation checks
    it 'is case-insensitive in log level name', ->
      logLvl = logObj._validateLogLvl "debug"
      assert.equal logLvl, logger.Debug
      logLvl = logObj._validateLogLvl "Debug"
      assert.equal logLvl, logger.Debug

    it 'sets non-default log levels', ->
      logLvl = logObj._validateLogLvl "info"
      assert.equal logLvl, logger.Info
      # TODO: for each possible log level ...
      logLvl = logObj._validateLogLvl "critical"
      assert.equal logLvl, logger.Critical

    it 'sets level to Debug, if given an invalid log level', ->
      logLvl = logObj._validateLogLvl "sometest"
      assert.equal logLvl, logger.Debug
  describe '.invalidlog', ->
    it 'check valid debug level JSON output of invalid log level', ->
      # Invalid log levels will default to debug
      logObj.setLogLevel "invalidloglevel"
      logObj.debug "testlogdebug"
      expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Debug + "\", \"title\": \"testlogdebug\"}"
      assert.deepEqual JSON.parse(sample), JSON.parse(expected)
