A test of goodness-of-fit based on extreme spacings with some efficiency comparisons