Testing continuity of a density via g-order statistics in the regression discontinuity design