add example_test.go and doc.go