Add test of ridge regression case.