Fix metrics.StatusCode test