Actually instead of a unit-test, a simple inline doctest in the docstring would be better. e.g.

```
>>> _circular_sample(np.array([0, 1, 2]), 8, random_state=42)
array([0, 1, 2, 0, 1, 2, 1, 0])
```