Added test types to API; gofmt