Add loss. Add gradient test for ConcatenateLayer.