junit fix. increased precision and max tier number of generalized gradient to avoid numerical instability .

added simple test fro gamma family.