adds tests for the circular buffer