delete some useless debug code
Add defer.go test code.