#include <bits/stdc++.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
using namespace std;
void solve() {
  long long n, k, z, i, j, del, lar, ans = 0;
  cin >> n >> k >> z;
  long long a[n + 1];
  map<long long, long long> ma;
  long long sum = 0;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    if (i <= k + 1) {
      ans += a[i];
    }
  }
  long long cnt = 1;
  j = k - 1;
  while (j >= 1 && cnt <= z) {
    long long maxp = -1;
    for (i = 2; i <= j + 2; i++) {
      maxp = max(maxp, a[i] + a[i - 1]);
    }
    sum = 0;
    for (i = 1; i <= j; i++) {
      sum += a[i];
    }
    ans = max(ans, sum + cnt * maxp);
    j -= 2;
    cnt++;
  }
  cout << ans << "\n";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int _t = 1, i;
  cin >> _t;
  for (i = 1; i <= _t; i++) {
    solve();
  }
  return 0;
}
