add regularization gradient to penalty calculation
Added test directory and model testing class