extend unit test: check loss value, error value and residuals for the average loss
extend unit test: check loss value, error value and residuals for the average loss

accosmin/nanocv,accosmin/nanocv,accosmin/nanocv