Simplify the macros in test_regualarizer_as_loss_layer & add more cases
Integrate the Regularizer with the Layer