Development and tests of a new prototype detector for the XAFS beamline at Elettra Synchrotron in Trieste