Add tests for lib/log.rb.