test HingeLossLayer

Based on SoftmaxWithLossLayerTest.