A unified approach to goodness-of-fit testing for spherical and hyperspherical data | Synapse