fix gofmt, add test, correct noted concerns with default value
fix gofmt, add test, correct noted concerns with default value

grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana