added tests for regularization - jm