Function implementing the Generalized Monte Carlo plug-in test with calibration (GMCPIC test)
Useful links