Performance test of a triple GEM detector at CERN n-TOF facility