Added circular buffer test code.