Save buffer before run go test