Fixed EuclideanMaskedLossLayer, test should be fixed later