Log level factory tests and match string from Level.toString() in the factory.