Add a circular buffer test (from our internal codebase)