added test, gofmtd

Signed-off-by: shuai-z <zs.broccoli@gmail.com>