Add checking of the 'rand_func' argument to gpc_sample
Removed calling of unittests from function call with no args
(better use run configurations for that)