       logObj.info "testloginfo"
       expected = logger.Info + ".logger-test.testloginfo"
       assert.equal sample, expected
-  describe '.validatelog', ->
+  describe '.validateloglvl', ->
     # Explicit validation checks
-    it 'validatelog', ->
+    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
-      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 'invalidlog', ->
+    it 'check valid debug level JSON output of invalid log level', ->
       # Invalid log levels will default to debug
-      logObj.setLogLevel "debu"
+      logObj.setLogLevel "invalidloglevel"
       logObj.debug "testlogdebug"
       expected = "{\"source\": \"logger-tester\", \"level\": \"" + logger.Debug + "\", \"title\": \"testlogdebug\"}"
       assert.deepEqual JSON.parse(sample), JSON.parse(expected)

  describe '.multipleloggers', ->
    before ->
      logObj2 = new logger("logger-tester2")
    it 'samebuffer', ->
      logObj2.setOutput outputFunc
      logObj.warn "testlogwarning"
      output1 = sample
      logObj2.info "testloginfo"
      assert.notDeepEqual JSON.parse(sample), JSON.parse(output1)

    it 'diffbuffer', ->
      output2 = ""
      outputFunc2 = (text) -> output2 = text
      logObj2.setOutput outputFunc2


        logObj.error "testlogerror"
        assert.equal sample, ""
      it 'not empty cases due to log level', ->
        logObj.critical "testlogcritical"
        assert.notDeepEqual JSON.parse(sample), ""

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