Add unit test for chatlog plugin.
go fmt.