Threshold measurements at the internal experimental facility COSY-11